﻿using System.Collections.Generic;
using EzDesk.EventAggregation;
using EzDesk.DesktopClient.Model;

namespace EzDesk.DesktopClient.Event
{

    public class FeedPushArgs
    {
        public IEnumerable<Feed> UpdateCollection { get; set; }
        public IEnumerable<Feed> NotificationCollection { get; set; }
        public IEnumerable<Feed> ToDoCollection { get; set; }
    }

    public class FeedPushEvent : CompositeEvent<FeedPushArgs>
    {
        private static FeedPushEvent _instance;
        public static FeedPushEvent Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = EventAggregator<FeedPushEvent>.GetEvent();
                }
                return _instance;
            }
        }
    }
}
